Skip to content

Add an onboarding flow#1452

Merged
balloob merged 2 commits intomasterfrom
onboarding
Jul 17, 2018
Merged

Add an onboarding flow#1452
balloob merged 2 commits intomasterfrom
onboarding

Conversation

@balloob
Copy link
Copy Markdown
Member

@balloob balloob commented Jul 16, 2018

image

Adds an onboarding flow. Onboarding flow is automatically triggered on first install. It is triggered by the backend by redirecting all normal pages to the onboarding page. Once finished, the onboarding page will redirect to the main page to start auth.

Depends on backend PR home-assistant/core#15492

It's ugly, it's simple and it's just a start 👍 We will add more steps (like setting instance name/location, doing initial discovery/config entries).

@andrey-git
Copy link
Copy Markdown
Contributor

(didn't actually look at the code)
Why require username/password?

@balloob
Copy link
Copy Markdown
Member Author

balloob commented Jul 16, 2018

Because we're creating a user/password that will be used to login to Home Assistant. The created user will be an owner account, able to create other users that can log in.

<div class="layout vertical center fit">
<img src="/static/icons/favicon-192x192.png" height="192">

<p>Create your user account.</p>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need warn user they cannot change password after creation, at least for now

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Updated screenshot in description.

Copy link
Copy Markdown
Contributor

@c727 c727 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also remove src/onboarding/hao-step-user.js

<div class="layout vertical center fit">
<img src="/static/icons/favicon-192x192.png" height="192">

<p>Create your user account.</p>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this view for the admin/owner account only? Maybe we should mention it then

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this view is only shown once during initial setup of Home Assisatant. Think of it like setting up a new Windows or MacOS installation.

@ghost ghost assigned balloob Jul 17, 2018
@ghost ghost added the in progress label Jul 17, 2018
@balloob balloob merged commit 90328cf into master Jul 17, 2018
@ghost ghost removed the in progress label Jul 17, 2018
@balloob balloob deleted the onboarding branch July 17, 2018 08:05
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants